<template>
  <!-- 总容器 -->
    <div class="wrapper">
        <header>
            <i class="fa fa-angle-left" onclick="history.go(-1)"></i>
            <p>用户体检预约</p>
            <div></div>
        </header>
        <div class="top-ban"></div>

        <section class="img">
            <img src="@\assets\images\yuyue.png" width="720" height="634" >
            <p>
                <img src="@\assets\images\benrenyuyue.png" @click="goHospital()">
                <img src="@\assets\images\jiashuyuyue.png">
            </p>
        </section>
        
        <div class="bottom-ban"></div>
        <FooterView>
            
        </FooterView>
    </div>

</template>

<script>
import { useRouter } from 'vue-router';
import FooterView from '@/components/FooterView.vue'
import { getSessionStorage, noLogin } from '@/common';
export default {
    setup(){
        const router = useRouter();
        const userdata = getSessionStorage('userdata');
        if(!userdata){
            noLogin();
            return {};
        }
        function goHospital(){
            router.push('/hospital');
        }
        return {
            goHospital
        }
    },
    components: {
        FooterView
    },

}
</script>

<style scoped>
/*********************** 总容器 ***********************/
.wrapper{
    width: 100%;
    height: 100%;
}

.img{
    image-rendering: crisp-edges;
}

/*********************** header ***********************/
header{
    width: 100%;
    height: 15.7vw;
    background-color: #FFF;

    position: fixed;
    left: 0;
    top: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-sizing: border-box;
    padding: 0 3.6vw;
}
header .fa{
    font-size: 8vw;
}

/*********************** common样式 ***********************/
.top-ban{
    width: 100%;
    height: 15.7vw;
}
.bottom-ban{
    width: 100%;
    height: 14.2vw;
}

/*********************** section ***********************/
section{
    width: 100%;
}
section img{
    width: 100vw;
}
section p{
    box-sizing: border-box;
    padding: 0 3.6vw;
    margin-top: 10vw;

    display: flex;
    justify-content: space-between;
}
section p img{
    width: 44vw;
    border-radius: 1.6vw;
    display: block;
    cursor: pointer;
}

</style>